/*
 * @Author: your name
 * @Date: 2021-07-16 18:15:16
 * @LastEditTime: 2021-07-18 14:50:04
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \project-128-10\src\api\JXTK\siftBack.js
 */
// 引入axios 工具
import { createAPI } from '@/utils/request.js'
// 学科列表
// export const subjectsSimpleList = data => createAPI('/subjects', 'get', data)
// 学科简单列表
// export const subjectsSimpleList = data => createAPI('/subjects/simple', 'get', data)
// // 二级目录列表
// export const list = data => createAPI('/directorys', 'get', data)
// // 目录简单列表
// export const catalogList = data => createAPI('/directorys/simple', 'get', data)
// 标签列表
// export const tagsList = data => createAPI('/tags', 'get', data)
// 获取录入人列表
export const simple = data => createAPI('/users/simple', 'get', data)
// 获取精品题库列表数据
export const choiceList = data => createAPI('/questions/choice', 'get', data)
// 试题的审核
export const choiceCheck = data => createAPI(`/questions/check/${data.id}`, 'post', data)
// 精品题库的上下架
export const choicePublish = data => createAPI(`/questions/choice/:${data.id}/:${data.publishState}`)
